<div ng-controller="DazheCtrl" ng-init="listAction()">
    <ul class="sui-breadcrumb">
        <li>{{'打折'| translate}}</li>
        <li>{{'List'|translate}}
            <a href="#/dazhe/add" id="addNew" class="sui-btn btn-primary">+{{'add_new' | translate}}</a>
        </li>
        <span class="sui-form sui-form pull-right"> 
          
        </span>
    </ul>
    <table class="sui-table table-bordered">
        <thead>
            <tr>
                <th>{{'id'|translate}}</th>
                <th>{{'title'|translate}}</th>
                <th>{{'会员等级'|translate}}</th>
                <th>{{'活动类型'|translate}}</th>
                <th>{{'num'|translate}}</th>
                <th>{{'剩余时间'|translate}}</th>
                <th>{{'operation'|translate}}</th>
            </tr>
        </thead>
        <tbody>
            <tr ng-repeat="list in dazhe_list">
                <td>{{list.activity_id}}</td>
                <td>{{list.name}}</td>
                <td>
                    <item-name type="'level'" ng-model="list.level"></item-name>
                </td>
                <td>{{list.ptype == 1?"全店":"部分商品"}}</td>
                <td>{{list.ptype == 1?"-":list.activity_items.length}}</td>
                <td>{{list.diff_time}}</td>
                <td>
                    <a href="#/dazhe/add?activity_id={{list.activity_id}}" class="sui-btn btn-primary"> {{'编辑活动'|translate}} </a>
                    <a ng-show="list.ptype == 2" href="#/dazhe/add?activity_id={{list.activity_id}}" class="sui-btn btn-primary"> 编辑商品 </a>
                    <!-- <a ng-click="dazheDelete(list.activity_id)" class="sui-btn btn-danger">{{'delete'|translate}}</a> -->
                </td>
            </tr>
        </tbody>
    </table>
    <!-- 分页start -->
    <pager page-no="1" page-size="pageSize" total="dazhe_total" get-data="getList(pageNo)"></pager>
    <!-- 分页end -->
</div>